FROM centos:7.8.2003
LABEL auther_name="xiaojg" auther_email="307546435@qq.com"
RUN set -aux; \
    # set zone
    ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime; \
    echo 'Asia/Shanghai' >/etc/timezone; \
    # 配置centos7 base源
    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.def; \
    curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo; \
    sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo; \
    yum install -y wget unzip curl; \
    # 配置epel源
    curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo; \
    sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/epel.repo; \
    # install Dependent libraries
    yum install -y Xvfb; \
    yum install -y mesa*; \
    yum install -y freeglut*; \
    yum -y install numactl; \
    yum -y install which; \
    yum -y install fontconfig mkfontscale; \
    yum clean all; \
    rm -rf /var/cache/yum/*